-
-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prepare code and CI for Python 3.8 #1399
Conversation
This PR is part of an effort to drop Python 3.7 from pygeoapi's CI, with the intention of making Python 3.8 the minimum. Can you please review and check whether dropping Py37 is indeed desirable, given that it is now EOL? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ricardogsilva -- see minor comment about pandas. In addition:
- can we put the pytest changes as part of another PR?
- +1 to remove 3.7 support as part of this PR
Do you mean the usage of oytest's |
Yes that would work, thanks. |
Using pytest's parametrize mark. This makes it easier to isolate test cases in order to fix the errors that are showing up when running under Python3.8
8eacc8e
to
6eac27f
Compare
|
Overview
This PR refactors some of the tests (and code) in order to make them pass when running under Python 3.8 and also modifies the main CI workflow to use both Python v3.7 and v3.8
Ideally, it should verify that the pygeoapi is ready to move on to Python 3.8 and drop Python 3.7. This PR does not drop Python 3.7 from CI though - it merely prepares the code for it
Related Issue / Discussion
Additional Information
Some notes about the PR changes:
tests/data/CMC_hrdps_continental_TMP_TGL_80_ps2.5km_2020102700_P005-00.grib2
, which is for thegdps-temperature
collection in the test configuration, I did change pygeoapi config in order to remove the custom GDAL creation optionDATA_ENCODING: COMPLEX_PACKING
- the previous value caused a rasterio error under Python 3.8. Additionally, by consulting the data encoding section of the GDAL documentation on the GRIB driver, this option seemed to not be relevant, as the specific file being used as a test sample does not have a NO_DATA valueContributions and Licensing
(as per https://github.com/geopython/pygeoapi/blob/master/CONTRIBUTING.md#contributions-and-licensing)